{% extends "soc/models/edit.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}

{% block stylesheet %}
{{ block.super }}
<link rel='stylesheet' href='/soc/content/css/jquery-ui-sortable-090806.css'
type='text/css' media='all' />
{% endblock %}

{% block scripts %}
  {{ block.super }}
  <script type="text/javascript" src="/jquery/jquery-in-place-edit.js"></script>
  <script type="text/javascript" src="/jquery/jquery-ui.sortable.js"></script>
  <script type="text/javascript" src="/soc/content/js/templates/modules/gci/program/tag/difficulty-101029.js" melangeContext='{difficulties: {{ difficulties|safe }}}'></script>
{% endblock %}

{% block body %}
To add new tags click on Add button. To edit a tag click on the tag. To
delete a tag click on it and make its content empty. To order them drag and
drop the tags.
<p>
 <input style="font-weight: bold" type="button" value="Add" class="add-button" />
</p>
<ul class="in-place-edit" id="dynamic-add"></ul>
<p>
 <input style="font-weight: bold" type="button" value="Add" class="add-button" />
</p>
<div id="add_dialog" title="Add a new tag">
  <p>Please add a new tag</p>
  <form>
    <label for="new_name">Difficulty</label><input type="text" id="new_name" />
    <label for="new_value">Value</label><input type="text" id="new_value" />
  </form>
</div>

{% endblock %}

